print(dir(object))


class A:
    pass


class B:
    pass


class C(A, B):
    def __init__(self, name, age):
        self.name = name
        self.age = age


x = C('zs', 20)
"""特殊属性： __dict__: 示例对象的属性字典"""
print(x.__dict__)  # {'name': 'zs', 'age': 20}
print(C.__dict__)

print('---------------------')
print(x.__class__)  # 输出了对象所属的类 <class '__main__.C'>
print(C.__bases__)  # 父类元组 (<class '__main__.A'>, <class '__main__.B'>)

print(C.__base__)  # 类的积累（写在前面的父类）  <class '__main__.A'>
print(C.__mro__)  # 类的层次结构
print(A.__subclasses__())  # 子类列表
